﻿@{
    string twitter, facebook, fbGroup, liGroup;
    using (AfrikDotnetWebSite.Models.AfrikDotnetContext db = new AfrikDotnetWebSite.Models.AfrikDotnetContext())
    {
        twitter = db.SiteSettings.Where(s => s.Key.ToLower() == "twitter").Select(s => s.Value).FirstOrDefault();
        facebook = db.SiteSettings.Where(s => s.Key.ToLower() == "facebook").Select(s => s.Value).FirstOrDefault();
        fbGroup = db.SiteSettings.Where(s => s.Key.ToLower() == "fbgroup").Select(s => s.Value).FirstOrDefault();
        liGroup = db.SiteSettings.Where(s => s.Key.ToLower() == "ligroup").Select(s => s.Value).FirstOrDefault();
    }
}
<div>
    <div class="social-box cf">
        <a href="@twitter" title="Twitter" target="_blank">
            <img src="@Url.Content("~/static/img/soc1.jpg")" alt="Twitter"></a>
        <a href="@facebook" title="Facebook" target="_blank">
            <img src="@Url.Content("~/static/img/soc2.jpg")" alt="Facebook"></a>
    </div>
    <div class="groups-box">
        Groups:
        <a href="@fbGroup" title="Facebook group" target="_blank">Facebook</a>
        |
        <a href="@liGroup" title="LinkedIn group" target="_blank">LinkedIn</a>
    </div>
</div>
